#将玩家意外放入GUI的物品以实体的形式返还给玩家
summon chest_minecart ~ ~1 ~ {Tags:[fisland_item_temp],Invulnerable:1b}
data modify entity @e[tag=fisland_item_temp,limit=1] Items set from block ~ ~ ~ Items
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:0b,tag:{CustomModelData:580004}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.0 air
replaceitem entity @e[tag=fisland_item_temp] container.1 air
replaceitem entity @e[tag=fisland_item_temp] container.2 air
replaceitem entity @e[tag=fisland_item_temp] container.3 air
replaceitem entity @e[tag=fisland_item_temp] container.4 air
replaceitem entity @e[tag=fisland_item_temp] container.5 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:6b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.6 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:7b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.7 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:8b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.8 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:9b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.9 air
replaceitem entity @e[tag=fisland_item_temp] container.10 air
replaceitem entity @e[tag=fisland_item_temp] container.11 air
replaceitem entity @e[tag=fisland_item_temp] container.12 air
replaceitem entity @e[tag=fisland_item_temp] container.13 air
replaceitem entity @e[tag=fisland_item_temp] container.14 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:15b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.15 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:16b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.16 air
execute if block ~ ~ ~ barrel{Items:[{Slot:17b,tag:{tag:{id:"fisland:index"}}}]} run replaceitem entity @e[tag=fisland_item_temp] container.17 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:18b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.18 air
replaceitem entity @e[tag=fisland_item_temp] container.19 air
replaceitem entity @e[tag=fisland_item_temp] container.20 air
replaceitem entity @e[tag=fisland_item_temp] container.21 air
replaceitem entity @e[tag=fisland_item_temp] container.22 air
replaceitem entity @e[tag=fisland_item_temp] container.23 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:24b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.24 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:25b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.25 air
execute if entity @e[tag=fisland_item_temp,nbt={Items:[{Slot:26b,tag:{CustomModelData:589999}}]}] run replaceitem entity @e[tag=fisland_item_temp] container.26 air
replaceitem block ~ ~ ~ container.0 light_blue_dye{tag: {id: "fisland:index"}, CustomModelData: 580004, display: {Name: '[{"text":"手摇粉碎机","italic": false}]'}}
replaceitem block ~ ~ ~ container.6 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.7 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.8 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.9 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.15 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.18 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.24 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.25 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
replaceitem block ~ ~ ~ container.26 feather{tag:{id:"fisland:index"},CustomModelData:589999,display:{Name:'""'}}
# ---codep:powerdis:start---
execute if score @s fisland_ag_power matches 0 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580005,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 1..1200 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580006,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 1201..2400 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580007,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 2401..3600 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580008,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 3601..4800 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580009,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 4801..6000 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580010,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 6001..7200 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580011,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 7201..8400 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580012,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
execute if score @s fisland_ag_power matches 8401..9600 run replaceitem block ~ ~ ~ container.17 light_blue_dye{CustomModelData:580013,tag:{id:"fisland:index"},display:{Name:'{"text": "能量条","italic": false}' }}
# ---codep:powerdis:end---
kill @e[tag=fisland_item_temp]
execute as @e[type=item,distance=0..2] run data modify entity @s Motion set value [0.0,0.0,0.0]
clear @a feather{tag:{id:"fisland:index"}}